const express = require('express');
const router = express.Router();
const {
  getCommentListOfPost,
  getCommentById,
  addComment,
  likeComment,
  unlikeComment,
  deleteComment
} = require('../controller/comment');

router.get('/post/:id', getCommentListOfPost);

router.get('/:id', getCommentById);

router.post('/', addComment);

router.post('/:id/like', likeComment);

router.delete('/:id/like', unlikeComment);

router.delete('/:id', deleteComment);

module.exports = router;
